﻿@inherits DrawerTemplate<int, bool>

<Form Loading="@_formIsLoading"
      Model="@_editModel"
      LabelCol="new ColLayoutParam { Span = 8 }"
      WrapperCol="new ColLayoutParam { Span = 16 }"
      OnFinish="OnFormFinish"
      Context="model">
    <FormItem Label="车牌号">
        <Input @bind-Value="@model.CarNumber" />
    </FormItem>
    <FormItem Label="司机姓名">
        <Input @bind-Value="@model.Driver" />
    </FormItem>
    <FormItem Label="所属公司">
        <Input @bind-Value="@model.Company" />
    </FormItem>
    <Divider Orientation="left" Style="font-weight:bold">联系信息</Divider>
    <FormItem Label="手机号">
        <Input @bind-Value="@model.PhoneNumber" />
    </FormItem>
    <FormItem WrapperCol="new ColLayoutParam { Offset = 4, Span = 20 }">
        <Button Type="@ButtonType.Primary" HtmlType="submit">
            保存
        </Button>
        <Button OnClick="OnFormCancel">
            取消
        </Button>
    </FormItem>
</Form>